<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:fn="http://java.sun.com/jstl/functions"
      xmlns:c="http://java.sun.com/jstl/core"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich"> 
<title>Add Person</title>
<h:head>
</h:head> 
<body>
		<h:form>
			<h:panelGrid columns="2">
				<h:outputText value="Област: " />
				<h:selectOneMenu id="provincedd" value="#{saver.province}">
					<f:selectItems value="#{saver.provinces}"/>
					<a4j:ajax event="onChange" render="mun" execute="@this" />
				</h:selectOneMenu>
				<h:outputText value="Община: "/>
				<h:selectOneMenu value="#{saver.municipality}" rendered="#{not empty saver.province.id}">
					<f:selectItems value="#{saver.municipalities}" var="municipality" itemLabel="#{municipality.name}" itemValue="#{municipality.id}"/>
				</h:selectOneMenu>
				<!-- <a4j:outputPanel id="municipalitydd" layout="block">
				</a4j:outputPanel>
				<a4j:outputPanel id="set" layout="block">
					<h:outputText value="Град/Село: " rendered="#{not empty saver.municipality}"/>
					<h:selectOneMenu value="#{saver.settlements}" rendered="#{not empty selectsBean.currentType}">
						<f:selectItems value="#{saver.municipalities}" var="municipality" itemLabel="#{municipality.name}" itemValue="#{municipality}"/>
					</h:selectOneMenu>
				</a4j:outputPanel> -->
				<!-- <h:outputText value="Комплекс: " />
				<h:inputText value="#{saver.person.address.complex}" />
				<h:outputText value="Улица: " />
				<h:inputText value="#{saver.person.address.street}" />
				<h:outputText value="Номер: " />
				<h:inputText value="#{saver.person.address.number}" />
				<h:inputHidden value="#{saver.person.address}" /> -->
			</h:panelGrid>
		</h:form>
</body> 
</ui:composition>

